package tk.mybatis.springboot.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import tk.mybatis.springboot.mapper.TestMapper;
import tk.mybatis.springboot.model.City;

@Service
public class TestService {

	@Resource
	private TestMapper testMapper;

	public List<City> getAll(City city) {
		return testMapper.getAll(city);
	};
	
	public City getById(Integer id){
		return testMapper.getById(id);
	}
}
